//
//  Toast.swift
//  DaDainan
//
//  Created by 刘泽 on 2017/11/26.
//  Copyright © 2017年 唐山徕思歌科技有限公司. All rights reserved.
//

import Foundation
import PKHUD
open class Toast {
    
    public static func showSuccess(_ message:String)  {
        
        HUD.flash(.labeledSuccess(title: nil, subtitle: message),delay:1.5)
        //SwiftProgressHUD.showSuccess(message, autoClear: true, autoClearTime: 1)
    }
    public static func showError(_ message:String)  {
        HUD.flash(.labeledError(title: nil, subtitle: message),delay:1.5)
        
    }
    
    public static func showMessage(_ message:String) {
        HUD.flash(.label(message),delay:1.5)
        
    }
    
    public static func showLoading() {
        HUD.flash(.progress,delay:60)
        
    }
    
    public static func hide() {
        HUD.hide()
    }
}


